home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
081-090
/
amok82
/
plot
/
source
/
mystrings.mod
< prev
next >
Wrap
Text File
|
1993-11-04
|
873b
|
39 lines
IMPLEMENTATION MODULE MyStrings;
(*
Created: 1987 by
Stefan Salewski
Stolper Weg 3
2160 Stade West-Germany
Tel: 04141/61130
Note: compiled with AMIGA Modula-2 System by AMSoft from 5.5.88
This Module may be freely copied. But please
leave my name in. Thanks....Stefan
*)
PROCEDURE Assign(VAR Dest:ARRAY OF CHAR;Source:ARRAY OF CHAR);
VAR i,h:INTEGER;
BEGIN
h:=HIGH(Source)+1;(*Elementenzahl*)
IF HIGH(Dest)<h THEN h:=HIGH(Dest) END;
i:=(0);
WHILE (i<h) AND (Source[i]#0C) DO
Dest[i]:=Source[i];
INC(i);
END;
Dest[i]:=0C;
END Assign;
PROCEDURE Length(s:ARRAY OF CHAR):CARDINAL;
VAR l:INTEGER;
BEGIN
l:=0;
WHILE (l <= HIGH(s)) AND (s[l]#0C) DO
INC(l)
END;
RETURN CARDINAL(l)
END Length;
END MyStrings.mod